﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Project.Model.EF6.Base;

namespace Project.Model.EF6.Entity
{
    [Table("T_SGM_XLW_ACTIVE_RECORD")]

    public class ActiveRecord : ModelBase
    {
        [Key]
        public long ID { get; set; }
        public DateTime SCAN_TIME { get; set; }

        [StringLength(32)]
        [Column(TypeName = "varchar2")]
        public string QR_CODE { get; set; }
        public int STATUS { get; set; }

        [StringLength(32)]
        [Column(TypeName = "varchar2")]
        public string PRODUC_SPE_ID { get; set; }

        [StringLength(50)]
        [Column(TypeName = "varchar2")]
        public string PRODUC_SPE { get; set; }

        [StringLength(32)]
        [Column(TypeName = "varchar2")]
        public string PRODUCT_ID { get; set; }

        [StringLength(100)]
        [Column(TypeName = "varchar2")]
        public string PRODUCT_NAME { get; set; }

        [StringLength(32)]
        [Column(TypeName = "varchar2")]
        public string OPENID { get; set; }

        [StringLength(50)]
        [Column(TypeName = "varchar2")]
        public string NICK_NAME { get; set; }

        [StringLength(11)]
        [Column(TypeName = "varchar2")]
        public string MOBILE { get; set; }
        public int AREAID { get; set; }

        [ForeignKey("AREAID")]
        public virtual ActiveConfig ActiveConfig { get; set; }
        [NotMapped]
        public string DateShow { get; set; }
    }
}
